
<div class="well" align="center">
        <?php
        //var_dump($project);
        

        echo $this->Form->create('Task', array('url' => '../stories/addTask/'.$story['Story']['id'], 'class'=>'form-inline'));
        ?> 
        <fieldset> 

        <?php 
            echo $this->Form->input('story_id',array('type' => 'hidden','value'=>$story['Story']['id']));
            echo $this->Form->input('project_id',array('type' => 'hidden','value'=>$story['Project']['id']));
            echo $this->Form->input('creator_id',array('type' => 'hidden','value'=>AuthComponent::user('id')));
             
            $options = array('placeholder' => 'Tarea','label'=>false,'class'=>'input','div'=>false);
            echo $this->Form->input('task',$options);
            $arrOptionsMember=array();
            for ($i=0;$i<count($members);$i++){
                $idM=$members[$i]['id'];
                $nameM=$members[$i]['username'];
                $arrOptionsMember[$idM]=$nameM;
            }
            ?>


            <?php
            //$optionsLabelRes = array('class' => 'control-label','style'=>'padding-right:20px','text'=>'Responsable');
            echo $this->Form->input('responsible_id', array(
                        'options' => $arrOptionsMember,/*'class'=>'chzn-select',*/'class'=>'input','div'=>false,
                        
                        'label' => false,
                        'empty' => '(choose one)'
                    ));?>
    
                    <?php
                    $optionsBtn = array('label' => 'Nueva Tarea','class' => 'btn','div'=>false);
                   
                    echo $this->Form->end($optionsBtn);
                    
                    ?>
                    
            
        </fieldset>

 </div>